package com.example.springboot.service;

import com.example.springboot.entity.feedbacks;
import com.example.springboot.mapper.FeedbackMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeedbackService {

    @Autowired
    private FeedbackMapper feedbackMapper;

    public List<feedbacks> selectAll() {
        return feedbackMapper.selectAll();
    }

    public void deleteFeedback(int feedback_id) {
        feedbackMapper.deleteFeedback(feedback_id);
    }

    public void editFeedback(feedbacks feedbacks) {
        feedbackMapper.editFeedback(feedbacks);
    }
}
